package com.chinasofti;

import java.util.Scanner;

public class Demo04 {
    public static int maxInt(int n,int m) {
        if(n>m){
            return n;
        }else{
            return m;
        }
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入两个数，判断大小");
        int n = sc.nextInt();
        int m = sc.nextInt();
        int max = maxInt(n,m);
        System.out.println(max);
    }
}
